package com.mongodb.document.test;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "zipInfo")
public class ZipInfo {
    @Id
    private String id;
    private String city;
    private String state;
    @Field("pop")
    private int population;
    @Field("loc")
    private double[] location;
}
